package com.ruoyi.common.constant;

/**
 * 缓存的key 常量
 * 
 * @author ruoyi
 */
public class CacheConstants
{
    /**
     * 登录用户 redis key
     */
    public static final String LOGIN_TOKEN_KEY = "login_tokens:";

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

    /**
     * 参数管理 cache key
     */
    public static final String SYS_CONFIG_KEY = "sys_config:";

    /**
     * 字典管理 cache key
     */
    public static final String SYS_DICT_KEY = "sys_dict:";

    /**
     * 防重提交 redis key
     */
    public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";

    /**
     * 限流 redis key
     */
    public static final String RATE_LIMIT_KEY = "rate_limit:";

    /**
     * 登录账户密码错误次数 redis key
     */
    public static final String PWD_ERR_CNT_KEY = "pwd_err_cnt:";

    /**
     * 设备&床位绑定 redis key
     */
    public static final String DEV_BED_BIND_KEY = "dev_bed_bind:";
    public static final String BED_DEV_BIND_MAPPING = "bed_dev_bind_mapping";

    /**
     * 设备监控点 redis key
     */
    public static final String DEV_POINT_VALUE = "dev_point_value:";

    /**
     * 床位信息缓存
     */
    public static final String BED_INFO_CACHE = "bed_info_cache:";

    /**
     * 设备信息缓存
     */
    public static final String DEV_INFO_CACHE = "dev_info_cache:";

    /**
     * 设备告警
     */
    public static final String DEV_WARN_CACHE = "dev_warn_cache:";

    /**
     * 设备写入锁
     */
    public static final String DEV_WRITE_LOCK = "dev_write_lock:";

    /**
     * 设备告警 显示
     */
    public static final String DEV_WARN_100_1_CACHE = "dev_warn_100_1_cache:";

    /**
     * 设备告警 报警
     */
    public static final String DEV_WARN_100_2_CACHE = "dev_warn_100_2_cache:";
}
